package com.qf.entity.vo;

import com.qf.entity.dto.ModuleRoleMiddle;
import com.qf.entity.dto.Role;

import java.util.List;

/**
 * 用于返回给前端一个Role对象和ModuleRoleMiddle中间表集合
 */
public class RoleAndMiddleList {

    private Role role;
    private List<ModuleRoleMiddle> moduleRoleMiddle;

    public RoleAndMiddleList(Role role, List<ModuleRoleMiddle> moduleRoleMiddle) {
        this.role = role;
        this.moduleRoleMiddle = moduleRoleMiddle;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public List<ModuleRoleMiddle> getModuleRoleMiddle() {
        return moduleRoleMiddle;
    }

    public void setModuleRoleMiddle(List<ModuleRoleMiddle> moduleRoleMiddle) {
        this.moduleRoleMiddle = moduleRoleMiddle;
    }
}
